package Staticstudy;

public class static_code {
    static{
        System.out.println("静态代码块执行啦");
    }
    private static int counter=0;
    public static_code()
    {
        System.out.println("构造方法开始运行");
        if(++counter!=1)
        {
            System.out.println("静态代码块已经执行过啦，不会再执行啦");
        }
    }
}
